package com.xigua.domain;


import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2021/11/414:58
 */
public class User {

    @NotNull(message = "对象id不能为空")
    private long id;

    @NotNull(message = "用户账号不能为空")
    @Size(max = 11,min = 6,message = "账号长度必须为6-11位")
    private String acoount;

    @NotNull(message = "用户密码不能为空")
    @Size(max = 16,min = 6,message = "密码长度必须为6-16个字符")
    private String password;

    @NotNull(message = "用户邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;




}
